package Basic;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class xiancheng2 implements Runnable{
	public static void main(String []args) {
		Scanner input=new Scanner(System.in);
		
		Map map=new HashMap();
		
		Thread thread=new Thread(new xiancheng2());
		System.out.println("11111111");
		thread.start();
		System.out.println("请输入：");
		String d=input.next();
		System.out.println(d);
		thread.stop();
	}
	
	@Override
	public void run() {
		System.out.print("剩余时间： ");
		for (int i=30;i>0;i--) {
			System.out.print(i+" ");
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.exit(-1);/*系统退出*/
	}

}
